package com.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ResponseEntity<T> {
    private int code;
    private String message;
    private T data;
    public static final ResponseEntity SUCCESS = new ResponseEntity(200,"执行成功",null);
    public static final ResponseEntity FAIL = new ResponseEntity(500,"执行失败",null);
}
